home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0997 / 000336_amos-request@svcs1.digex.net_Sat Sep 27 18:22:55 1997.msg < prev    next >
Text File  |  1997-10-01  |  4KB  |  92 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id SAA17807
  3.     for <mcox@access.digex.net>; Sat, 27 Sep 1997 18:22:53 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id PAA17324
  6.     for amos-out; Sat, 27 Sep 1997 15:41:54 -0400 (EDT)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id PAA17321
  9.     for <amos-list@svcs1.digex.net>; Sat, 27 Sep 1997 15:41:53 -0400 (EDT)
  10. Received: from mail1-gui.server.virgin.net (mail1-gui.server.virgin.net [194.168.54.1])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id PAA04501
  12.     for <amos-list@access.digex.net>; Sat, 27 Sep 1997 15:41:52 -0400 (EDT)
  13. Received: from p13-cormorant-gui.tch.virgin.net ([194.168.58.193])
  14.           by mail1-gui.server.virgin.net (Post.Office MTA v3.0 release 112
  15.           ID# 0-33929U70000L2S50) with ESMTP id AAB23351;
  16.           Sat, 27 Sep 1997 20:41:40 +0100
  17. From: "Alastair Murray" <malcolm.murray@virgin.net>
  18. Date: 27 Sep 97 17:58:52 +0000
  19. Subject: Re: Set Bob doesn't work right
  20. Message-Id: <342D495C.MD-0.196.malcolm.murray@virgin.net>
  21. In-Reply-To: <342A22D4.4062@psln.com>
  22. To: "JohnF.Rodgers"<jfr@psln.com>, amos-list@access.digex.net
  23. Mime-Version: 1.0
  24. Content-Type: text/plain; charset=us-ascii
  25. Content-Transfer-Encoding: 7bit
  26. X-Mailer: MicroDot-II/AmigaOS 0.196
  27. Status: O
  28. X-Status: 
  29.  
  30. > I've been working with fonts and bobs in AmosPro.  By trial and error, I discovered that 
  31. >  setting a font, gr writing mode, or ink color only affects the current screen.  The 
  32. > user manual doesn't mention this.  Little things like this can waste a lot of time when 
  33. > your program doesn't perform as it ought to, because the commands don't perform as they 
  34. > are advertised.
  35.  
  36. sorry :)
  37.  
  38. Actually its pretty obvious. If those commands set it for EVERY screen then
  39. you would have to keep changing them for every screen operation which would
  40. slow your program down and then you'd still complain.
  41.  
  42. > Well, the same thing has happend with bobs.  I am trying to render out some text with 
  43. > outline and shadow.  My intent was to render it in color 7 (all bitplanes in 8 color 
  44. > mode), pick it up as a bob (#1), then set the bob mask screen planes to whatever color I 
  45. > want to stamp down.  It works if I position the bob with Bob 1,x,y,1 and then Put Bob.  
  46. > But only the first time.  Subsequent Bob masks do not perform properly.  I even tried 
  47. > picking up the bob again before setting the mask.  It still fails to perform as it 
  48. > ought.  Here is the code of a short test program:
  49.  
  50. Right. This is a bug which I've been having problems with too. If you use the same
  51. bob for different things (I know what they are put are too complicated to be bothered
  52. explaining them now) then they mess up. From your program it seemed pretty
  53. clear that you couldn't use Set Bob when you are already displaying it as
  54. was your previous explanation. Anyway heres a fix but there are other
  55. ways of getting around it too.
  56.  
  57. Replace this:
  58.  
  59. > For C=1 To 7
  60. > Set Bob 1,-1,C,%11001010 : Rem Transparent color zero, BG redraw off
  61. > Bob 1,C*20,c*20,1
  62. > Put Bob
  63. > Wait Vbl
  64. > Next C
  65.  
  66. With This:
  67.  For C=1 To 7
  68.  Set Bob C,-1,C,%11001010 : Rem Transparent color zero, BG redraw off
  69.  Bob C,C*20,c*20,1
  70.  Put Bob C
  71.  Wait Vbl
  72.  Bob Off C
  73.  Next C
  74.  
  75. -Murray
  76.  
  77. --
  78.  
  79.            \\|//     Alastair Murray
  80.            (o o)       malcolm.murray@virgin.net
  81. |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  82. |         AMINET         |Web-Page (Amiga/Games/AMOS/trek/Music/    |
  83. |     game/role/CHAOS    |                  +more)                  |
  84. |game/jump/Banana Islands|http://freespace.virgin.net/malcolm.murray|
  85. |   game/shoot/Hanger18  |Current Projects: >Chaos 2                |
  86. |    dev/amos/keystate   | >Kill Em All     >Hanger 18 II           |
  87. |    dev/amos/picpack    | >Skool Daze      >The Crow               |
  88. |   game/shoot/traitor   | >Banana Islands                          |
  89. |   game/shoot/extinct   | >The Turtleminator                       |
  90. |     game/jump/blobby   | >Backbone - The Game Creator             |
  91. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  92.